#include "common.hpp"
#include "Http.hpp"
#include "Log.hpp"

using namespace LogModule;

int main(int argc, char* argv[])
{
    if(argc != 2)
    {
        LOG(LogLevel::ERROR) << "Usage Error";
        exit(USAGE_ERROR);
    }

    uint16_t port = std::stoi(argv[1]);

    std::unique_ptr<Http> http = std::make_unique<Http>(port);

    http->Start();

    return 0;
}